<?php 
	$data['menu'] = 'module';
	$data['title'] = '产品品牌';
//	$data['site_url'] = site_url('manager/goods/brand/');
	$this->load->view('manager/header',$data);
?>
<div class="crumbs">当前位置：<a href="#">模块管理</a> &gt; <a href="#">产品设置管理</a> &gt; <span class="silver">产品品牌</span></div>
<div class="tip tip-b">
    <p class="alert noclose"><i class="icon"></i>产品品牌：可提供列表选择搜索。<a class="steelBlue" href="#"></a></p>				
</div>
<div class="list-tab">
	<ul>
		<li <?php if($action == 'list') echo 'class="cur"'?>><a href="<?php echo site_url('manager/goods/brand/index/');?>">产品品牌列表</a></li>
		<li <?php if($action == 'add') echo 'class="cur"'?> title="新增产品品牌"><a href="<?php echo site_url('manager/goods/brand/add/');?>" title="新增产品品牌">新增产品品牌</a></li>
		<?php if($action == 'edit') 
			echo '<li class="cur" title="编辑产品品牌">编辑产品品牌</li>';
		?>
	</ul>
</div>
<?php if($action == 'list'){?>
<table class="list-table list-table-s">
	<thead>
		<tr class="th-extra">
			<th align="center"><input id="checkall" type="checkbox"/></th>
			<th colspan="3" align="left">
				<label for="checkall" class="checkall-label">全选</label><span class="divide"></span><a href="#">删除</a>
			</th>
		</tr>
		<tr>
			<th align="center" width="20"></th>
			<th align="left">名称</th>
			<th align="left" width="100">别名</th>
			<th align="left" width="200">操作</th>
		</tr>
	</thead>
	<tbody>
		<?php if(isset($list) && count($list))
			foreach ($list as $item) {
		?>
		<tr>
			<td align="center" width="20"></td>
			<td align="left"><?php echo $item['name']?></td>
			<td align="left" width="100"><?php echo $item['alias']?></td>
			<td align="left" width="200"><a href="<?php echo site_url('manager/goods/brand/edit/'),'/',$item['id'];?>">编辑</a> / <a class="op_ajax" href="<?php echo site_url('manager/goods/brand/dodelete/'.$item['id'])?>">删除</a></td>
		</tr>
		<?php }else{?>	
		<tr>
			<td colspan="4" align="center">	
				<div class="med-tip">
					<p class="attention noclose noborder nobackground">
						<i class="icon"></i>
						对不起，暂无数据！
					</p>
				</div>
			</td>
		</tr>
		<?php }?>
	</tbody>
</table>
<div class="pagination">
	<?php if(isset($pages)) echo $pages;?>
</div>
<?php }else if($action == 'add' || $action == 'edit'){
	echo $form;
}?>
<?php $this->load->view('manager/footer');?>